package com.marvels.financial.loan.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.marvels.financial.loan.dto.CheckBillDTO;
import com.marvels.financial.loan.dto.EverydayStatisticsDTO;

public interface FinancialCheckBillDao {
	/**
	 * 获取续贷人员id
	 * @param dto
	 * @return
	 */
	public List<String> selectContinueLoan(CheckBillDTO dto);
	
	/**
	 * 查询续贷金额及笔数
	 * @param dto
	 * @return
	 */
	public EverydayStatisticsDTO selectContinueLoanAmount(CheckBillDTO dto);
	
	public EverydayStatisticsDTO countContinueCout(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("icCardList") List<String> icCardList);
	public EverydayStatisticsDTO countEverydayStatistics(@Param("startDate") String startDate,@Param("endDate") String endDate);
	
	
	/**
	 * 查询续贷手续费
	 * @param dto
	 * @return
	 */
	public Double selectContinueLoanFeeAmount(CheckBillDTO dto);
	/**
	 * 获取逾期的总贷款金额
	 * @param days
	 * @return
	 */
	public Double selectOverdueLoanAmount(@Param("days") String days);
	
	
	/**
	 * 查询6天前放款本金
	 * @param days
	 * @return
	 */
	public Double selectLoanAmount(@Param("days") String days);
	
	
	public Double countLoanPrincipalAmtAct(@Param("startDate") String startDate,@Param("endDate") String endDate);
	
	
	/**
	 * 对账管理 每日统计
	 * @param loanId
	 * @return
	 */
	public List<EverydayStatisticsDTO> selectEverydayStatistics(CheckBillDTO dto);
	
	
	
	/**
	 * 对账管理 每日统计
	 * @param loanId
	 * @return
	 */
	public EverydayStatisticsDTO selectStatistics(CheckBillDTO dto);
	
	
	/**
	 * 查询回款总金额
	 * @param loanId
	 * @return
	 */
	public Double selectReturnTotalMoney(@Param("loanIdList") List<String> loanIdList);
	
	/**
	 * 查询每日统计（新版）
	 * @param dto
	 * @return
	 */
	public List<EverydayStatisticsDTO> newSelectDailyStatistics(CheckBillDTO dto);
	
}